Test Case Design Using Conditioned Slicing of Activity Diagram
نویسندگان
چکیده
For testing software, test case generation is the most important part. The automation of specification based test case generation needs formal or semi formal specification. As a semiformal modeling, UML is widely used to describe analysis and design specification by both academia and industry. Thus UML models become the sources of test case generation naturally. This paper proposes a method to generate test cases from UML activity diagrams. We have proposed conditioned slicing as a general slicing framework for test case generation from activity diagrams. Our method first builds a flow dependence graph from an ordinary UML activity diagram and then applies conditioned slicing on a predicate node of the graph, to generate test cases. It minimizes the number of test cases generated while deriving all practically useful test cases. The effectiveness of a test case is based on how well the test covers and exercises the modeled behaviors. Our proposed method satisfies high path coverage criterion.
منابع مشابه
A Rational Approach on Model Based Slicing
Aim of Software testing is to evaluate an attribute or capability of system and determine that whether it meets required prospects. The most rationally challenging part of testing is to design of test cases. Now a days, UML has been extensively used for object oriented modeling and design. This is due to the fact that UML metamodel extends support to describe structural and behavioural aspects ...
متن کاملA Novel Test Case Design Technique Using Dynamic Slicing of UML Sequence Diagrams
We present a novel methodology for test case generation based on UML sequence diagrams. We create message dependence graphs (MDG) from UML sequence diagrams. Edge marking dynamic slicing method is applied on MDG to create slices. Based on the slice created with respect to each predicate on the sequence diagram, we generate test data. We formulate a test adequacy criterion named slice coverage c...
متن کاملConditioned slicing supports partition testing
This paper describes the use of conditioned slicing to assist partition testing, illustrating this with a case study. The paper shows how a conditioned slicing tool can be used to provide confidence in the uniformity hypothesis for correct programs, to aid fault detection in incorrect programs and to highlight special cases.
متن کاملPre/Post Conditioned Slicing
This paper shows how analysis of programs in terms of preand postconditions can be improved using a generalisation of conditioned program slicing called pre/post conditioned slicing. Such conditions play an important role in program comprehension, reuse, verification and reengineering. Fully automated analysis is impossible because of the inherent undecidability of preand postconditions. The me...
متن کاملTesting UML Designs using Class, Sequence and Activity Diagrams
Testing is performed by different types of strategies. Generally testing is performed on code, but if the software can be tested in the earlier phases then most of the errors can be eliminated and can be stopped from propagating to next phase. The proposed work presents a novel design based testing approach that can fix errors in initial phase. To perform design based testing, we need a languag...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2009